]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
calendar: Don't restrict section visibility by date
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 18 Dec 2018 10:16:24 +0000 (11:16 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 5 Jun 2020 23:04:09 +0000 (01:04 +0200)
The idea behind hiding the notifications and media section on days
other than today was that they represent present activity together
with today's events, in contrast to past and future events from
other days.

After events were moved out of the message list, that behavior is
no longer useful: We just guarantee that the left-hand side of the
calendar will always be empty when browsing the calendar.

Adjust to that by removing the limitation by date.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1282

js/ui/calendar.js
js/ui/mpris.js

index e048cd086cb557cad5e5ae838a53725a4eacc743..7eb4519166029f09476ccabd6c6bc2f0e8293cd5 100644 (file)
@@ -883,10 +883,6 @@ class NotificationSection extends MessageList.MessageListSection {
         });
         super.vfunc_map();
     }
-
-    _shouldShow() {
-        return !this.empty && isToday(this._date);
-    }
 });
 
 var Placeholder = GObject.registerClass(
index 23fca91b18e95648d79c47003bf0ac5be118aeb4..3650c577a3f4407a977a86986cf3cc22a9bfe4f2 100644 (file)
@@ -2,7 +2,6 @@
 const { Gio, GObject, Shell, St } = imports.gi;
 const Signals = imports.signals;
 
-const Calendar = imports.ui.calendar;
 const Main = imports.ui.main;
 const MessageList = imports.ui.messageList;
 
@@ -252,10 +251,6 @@ class MediaSection extends MessageList.MessageListSection {
                                     this._onProxyReady.bind(this));
     }
 
-    _shouldShow() {
-        return !this.empty && Calendar.isToday(this._date);
-    }
-
     get allowed() {
         return !Main.sessionMode.isGreeter;
     }